package cn.iune.erp.invoice;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Version;

import com.justep.baas.data.RowState;


@Entity
@Table(name="OtherType")
@NamedQuery(name="OtherType.findAll", query="SELECT s FROM OtherType s ")

public class OtherType {

	@Id
	@Column(length=32)
	private String fID;
	
	@Column(length=1)
	private String revOpay;
	@Column(length=50)
	private String revOpayLabel;
	
	@Column(length=100)
	private String sType;//类型
	@Column(length=255)
	private String sDescribe;
	
	@Column(length=32)
	private String capitalID;//默认资金账号ID
	
	@Transient//非持久字段
	@Column(length=10)
	private String capitalNo;
	@Transient//非持久字段
	@Column(length=50)
	private String capitalName;
	@Transient//非持久字段
	@Column(length=256)
	private String capitalFullName;//资金账户名称
	
	@Column(length=15)
	private String cUsercode;
	@Column(length=20)
	private String cUsername;//制单人
	private Timestamp cDatetime;
	
	@Column(length=32)
	private String userId;

	@Column(length=128)
	private String enterpriseNo;
	@Column(length=128)
	private String enterpriseName;

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getRevOpay() {
		return revOpay;
	}
	public void setRevOpay(String revOpay) {
		this.revOpay = revOpay;
	}
	public String getRevOpayLabel() {
		return revOpayLabel;
	}
	public void setRevOpayLabel(String revOpayLabel) {
		this.revOpayLabel = revOpayLabel;
	}
	public String getsType() {
		return sType;
	}
	public void setsType(String sType) {
		this.sType = sType;
	}
	public String getsDescribe() {
		return sDescribe;
	}
	public void setsDescribe(String sDescribe) {
		this.sDescribe = sDescribe;
	}
	public String getCapitalID() {
		return capitalID;
	}
	public void setCapitalID(String capitalID) {
		this.capitalID = capitalID;
	}
	public String getCapitalNo() {
		return capitalNo;
	}
	public void setCapitalNo(String capitalNo) {
		this.capitalNo = capitalNo;
	}
	public String getCapitalName() {
		return capitalName;
	}
	public void setCapitalName(String capitalName) {
		this.capitalName = capitalName;
	}
	public String getCapitalFullName() {
		return capitalFullName;
	}
	public void setCapitalFullName(String capitalFullName) {
		this.capitalFullName = capitalFullName;
	}
	public String getcUsercode() {
		return cUsercode;
	}
	public void setcUsercode(String cUsercode) {
		this.cUsercode = cUsercode;
	}
	public String getcUsername() {
		return cUsername;
	}
	public void setcUsername(String cUsername) {
		this.cUsername = cUsername;
	}
	public Timestamp getcDatetime() {
		return cDatetime;
	}
	public void setcDatetime(Timestamp cDatetime) {
		this.cDatetime = cDatetime;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getEnterpriseNo() {
		return enterpriseNo;
	}
	public void setEnterpriseNo(String enterpriseNo) {
		this.enterpriseNo = enterpriseNo;
	}
	public String getEnterpriseName() {
		return enterpriseName;
	}
	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}


}
